﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace yaai
{
    class Mode
    {
        private String name;
        private String descr;
        private String filePath;

        private List<simpleGrunka> words;

        public Mode(String name, String descr, List<simpleGrunka> list, String filePath)
        {
            this.words = list;
            this.name = name;
            this.descr = descr;
            this.filePath = filePath;
        }

        public Mode(string name, string filePath)
        {
            // TODO: Complete member initialization
            this.name = name;
            this.filePath = filePath;
            this.words = new List<simpleGrunka>();
        }

        public String generateInsult()
        {
            StringBuilder sb = new StringBuilder();
            foreach (simpleGrunka g in words)
            {
                sb.Append(g.getContent());
                sb.Append(" ");
            }
            return sb.ToString();
        }

        public String generateDescriptor()
        {
            StringBuilder sb = new StringBuilder();
            foreach (simpleGrunka g in words)
            {
                sb.Append(g.getDescriptor());
                sb.Append(" ");
            }
            return sb.ToString();
        }

        public String getName()
        {
            return name;
        }

        public String getFileName()
        {
            return filePath;
        }

        public String getDescription()
        {
            return descr;
        }
    }
}
